.homemain{
	width:100%;
    height: 100%;
    background-color: #eaeef7;
	overflow: auto;
	display: flex;
	justify-content: center;
	align-items: center;
}
.homemain .msgTitleShowModel{
    position: absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
    z-index:11;
    .modelInfo{
        position: absolute;
        width:40%;
        height:20%;
        background: #fff;
        border-radius: 10px;
        border:2px solid #9b9ea32e;
        .info{
            width: 100%;
            height: 40%;
            background: #ffffff;
            border-radius: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            color: #2a2b2d;
            font-size: 20px;
            font-weight: 600;
        }
        .footer{
            display: flex;
            width: 100%;
            height: 60%;
            align-items: end;
            padding: 10px;
            font-size: 30px;
            .cancel{
                height:100%;
                width:50%;
                background-color: #5a5f73;
                border:1px solid #2a2b2d;
                color:#fff;
                display: grid;
                font-size: 20px;
            }
            .deleteGood{
                height:100%;
                width:50%;
                background-color: #5a5f73;
                border:1px solid #2a2b2d;
                color:#fff;
                display: grid;
                font-size: 20px;
            }
        }
    }
	
}
.homemain .outlist{
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 10;
    display: flex;
    .outorderinfo{
        position: absolute;
        width:50%;
        height:65%;
        background: #fff;
        left:50%;
        top:50%;
        transform: translate(-50%,-50%);
        border-radius: 15px;
        border:none;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        .outheaderinfo{
            text-align: center;
            background: #409EFF;
            color: #fff;
            padding: 15px;
            font-size: 18px;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
            .tr{
                display: contents;
                align-items: center;
                padding: 10px;
            }
            .header-time {
                flex: 1;
                text-align: left;
                padding-left: 15px;
            }
            
            .header-price {
                flex: 1;
                text-align: center;
            }
            
            .header-action {
                flex: 1;
                text-align: right;
                padding-right: 15px;
            }
        }
    }
    .outforminfo{
        text-align: center;
        flex: 1;
        overflow-y: auto;
        padding: 15px;
        padding-bottom: 70px; /* 为底部按钮留出空间 */
        
        .outdatatr{
            width: 100%;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 15px;
            background-color: #f5f7fa;
            border-radius: 8px;
            padding: 0 15px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            transition: all 0.3s;
            
            &:hover {
                background-color: #ecf5ff;
                transform: translateY(-2px);
            }
            
            .outdatainfo {
                display: flex;
                flex: 2;
                justify-content: space-between;
                align-items: center;
                
                .outdatatime {
                    flex: 1;
                    font-size: 14px;
                    color: #606266;
                    text-align: left;
                }
                
                .outdataprice {
                    flex: 1;
                    font-size: 16px;
                    font-weight: 500;
                    color: #303133;
                    text-align: center;
                }
            }
            
            .settlement-btn{
                flex: 1;
                height: 36px;
                max-width: 80px;
                background-color: #409EFF;
                color: #fff;
                border: none;
                border-radius: 8px;
                font-size: 16px;
                cursor: pointer;
                transition: all 0.3s;
                display: flex;
                justify-content: center;
                align-items: center;
                margin-left: auto;
            }
            .settlement-btn:hover {
                background-color: #66b1ff;
            }
        }
        .settlementtr{
            display: flex;
            height: 60px;
            width: 100%;
            position: absolute;
            bottom: 0;
            left: 0;
            background: #f5f7fa;
            padding: 10px;
            justify-content: center;
            border-top: 1px solid #ebeef5;
            .settlement-btn{
                height: 40px;
                width: 120px;
                background-color: #409EFF;
                color: #fff;
                border: none;
                border-radius: 8px;
                font-size: 16px;
                margin: auto 10px;
                cursor: pointer;
                transition: all 0.3s;
                display: flex;
                justify-content: center;
                align-items: center;
            }
            .settlement-btn:hover {
                background-color: #66b1ff;
            }
        }
    }
}
.homemain .left {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f5f7fa;
    width:50%;
    padding: 0 5px;
    .category-nav {
      padding: 12px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      background: #fff;
      border-bottom: 1px solid #e4e7ed;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  
      .category-item {
        padding: 8px 16px;
        border-radius: 4px;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s ease;
        background: #f4f4f5;
        color: #606266;
        user-select: none;
  
        &:hover {
          background: #ecf5ff;
          color: #409eff;
        }
  
        &.active {
          background: #409eff;
          color: #fff;
        }
      }
    }
  
    .goods-grid {
      flex: 1;
      padding: 16px;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 10px;
      overflow-y: auto;
      align-content: flex-start; /* 添加这一行，防止商品被拉伸 */
  
      &::-webkit-scrollbar {
        width: 6px;
      }
  
      &::-webkit-scrollbar-thumb {
        background: #c0c4cc;
        border-radius: 3px;
      }
  
      .good-card {
        background: #fff;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
        height: fit-content; /* 添加这一行，使卡片高度适应内容 */
  
        &:hover {
          transform: translateY(-2px);
          box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        }
  
        .good-content {
          padding: 16px;
  
          .title {
            margin: 0 0 12px;
            font-size: 16px;
            color: #303133;
            line-height: 1.4;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
          }
  
          .price-info {
            .original-price {
              color: #909399;
              font-size: 13px;
              text-decoration: line-through;
              margin-bottom: 4px;
            }
  
            .vip-price {
              color: #409eff;
              font-size: 16px;
              font-weight: 600;
            }
          }
        }
      }
    }
}
.homemain .homemainright{
    background-color: #fff;
    height: 100%;
    width: 50%;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 头部搜索和会员信息区域 */
.homemainright .header {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.homemainright .search-container {
    display: flex;
    gap: 10px;
    background: #f5f7fa;
    padding: 15px;
    border-radius: 8px;
}

.homemainright .weight-input {
    width: 120px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.homemainright .input-label {
    font-size: 12px;
    color: #606266;
}

.homemainright .phone-search {
    flex: 1;
    display: flex;
    gap: 10px;
}

.homemainright .goodNumInput,
.homemainright .rechargeInput {
    height: 40px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 16px;
}

.homemainright .goodNumInput {
    text-align: center;
    font-weight: 500;
    color: #303133;
}

.homemainright .member-info-container {
    display: flex;
    background: #f5f7fa;
    padding: 15px;
    border-radius: 8px;
}

.homemainright .member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.homemainright .info-row {
    display: flex;
    align-items: center;
}

.homemainright .info-label {
    width: 80px;
    color: #606266;
    font-size: 14px;
}

.homemainright .info-value {
    color: #303133;
    font-weight: 500;
    font-size: 14px;
}

.homemainright .member-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

/* 购物车区域 */
.homemainright .cart-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    overflow: hidden;
}

.homemainright .cart-header {
    display: flex;
    background: #f5f7fa;
    padding: 10px 15px;
    font-weight: 500;
    color: #606266;
    border-bottom: 1px solid #ebeef5;
}

.homemainright .header-item {
    flex: 1;
    text-align: center;
}

.homemainright .cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0 5px;
}

.homemainright .detail {
    padding: 12px;
    border-bottom: 1px solid #ebeef5;
    cursor: pointer;
    transition: all 0.3s;
}

.homemainright .detail:hover {
    background: #f5f7fa;
}

.homemainright .detail.selected {
    background: #ecf5ff;
    border-left: 3px solid #409eff;
}

.homemainright .detail.free {
    background: #f0f9eb;
    border-left: 3px solid #67c23a;
}

.homemainright .item-name {
    font-weight: 500;
    margin-bottom: 8px;
    color: #303133;
}

.homemainright .item-details {
    display: flex;
    color: #606266;
    font-size: 14px;
}

.homemainright .item-price,
.homemainright .item-quantity,
.homemainright .item-total {
    flex: 1;
    text-align: center;
}

/* 订单汇总区域 */
.homemainright .order-summary {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f5f7fa;
    border-radius: 8px;
}

.homemainright .summary-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.homemainright .summary-label {
    color: #606266;
    font-size: 14px;
}

.homemainright .summary-value {
    color: #303133;
    font-weight: 600;
    font-size: 18px;
}

.homemainright .total-price .summary-value {
    color: #f56c6c;
}

/* 操作按钮区域 */
.homemainright .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.homemainright .button-row {
    display: flex;
    gap: 10px;
}

.homemainright .button-row .el-button {
    flex: 1;
    height: 40px;
}

/* 确保按钮中的图标正确显示 */
.homemainright .el-button i,
.homemainright button i {
  margin-right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 修复图标字体大小和行高 */
.homemainright .el-icon,
.homemainright .el-button i,
.homemainright button i {
  font-size: 16px;
  line-height: 1;
  height: auto;
  width: auto;
}

/* 确保图标在按钮中垂直居中 */
.homemainright .el-button,
.homemainright button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 修复可能的图标颜色问题 */
.homemainright .el-button--primary i,
.homemainright .el-button--success i,
.homemainright .el-button--danger i,
.homemainright .el-button--warning i {
  color: inherit;
}